<?php

function getSettingValue($name){
    $system = model('setting')->getRule($name);
    return  $system;
}


function QR($url,$matrixPointSize =6,$errorCorrectionLevel='L')

{

     include EXTEND_PATH.'phpqrcode/phpqrcode.php';  //引入phpqrcode类文件

     return QRcode::png($url, false, $errorCorrectionLevel, $matrixPointSize, 2);

}